<?php get_header(); ?>
	<div id="content">
	<h2 class="archive-title">
		<?php $post = $posts[0]; ?>
		<?php if (is_home()) { ?><?php _e('Home ','paranimage'); ?>
		<?php } elseif (is_single() || is_page()) { ?><?php the_title(); ?>
		<?php } elseif (is_category()) { ?><?php _e('Category: ','paranimage'); ?><span><?php echo single_cat_title(); ?></span>
		<?php } elseif (is_day()) { ?><?php _e('Date Archive: ','paranimage'); ?><span><?php the_time('F jS, Y'); ?></span>
		<?php } elseif (is_month()) { ?><?php _e('Date Archive: ','paranimage'); ?><span><?php the_time('F, Y'); ?></span>
		<?php } elseif (is_year()) { ?><?php _e('Date Archive: ','paranimage'); ?><span><?php the_time('Y'); ?></span>
		<?php } elseif (is_tag()) { ?><?php _e('Tag: ','paranimage'); ?><span><?php echo single_tag_title(); ?></span>
		<?php } elseif (is_search()) { ?><?php _e('Search Results for ','paranimage'); ?><span><?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; echo $key; ?></span><?php _e(' &mdash; ','paranimage'); echo $count . ' '; wp_reset_query(); ?>
		<?php } elseif (is_author()) { ?><?php _e('Author Archive: ','paranimage'); ?><?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?>Posts by <span><?php echo $curauth->nickname; ?></span>
		<?php } elseif (is_404()) { ?><?php _e('Error 404 - Not Found ','paranimage'); ?>
		<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><?php _e('Blog Archive: ','paranimage'); ?><?php } ?>
	</h2>
	<?php if (have_posts()) : ?>
		<?php while (have_posts()) : the_post(); ?>
			<div class="post clearfloat" id="post-<?php the_ID(); ?>">
				<small class="post-date"><?php the_time('F jS, Y') ?><?php edit_post_link( __('Edit'), ' - ', ' '); ?></small>
				<h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
				<div class="entry clearfloat">
					<p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 318,"..."); ?> <span class="more"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php _e('Continue Reading','paranimage') ?></a></span></p>
				</div>
				<div class="post-meta">
					<span class="meta-comment"><?php comments_popup_link( __( 'Comments (0)', 'paranimage' ), __( 'Comments (1)', 'paranimage' ), __( 'Comments (%)', 'paranimage' ), 'comments-link', __('Comments closed', 'paranimage')); ?></span>
					<!--<span class="meta-author"><?php the_author_posts_link() ?></span>-->
					<span class="meta-categories"><?php the_category(', '); ?></span>
				</div>
			</div><!-- end .post -->
        <?php endwhile; ?>
		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
			<div class="navigation clearfloat" id="index-nav">
				<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','paranimage')) ?></div>
				<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','paranimage')) ?></div>
			</div>
		<?php } ?>
	<?php else : ?>
		<div class="post notfound">
			<h2><?php _e('Sorry, The page you`re looking for doesn`t exist...', 'paranimage'); ?></h2>
		</div>
	<?php endif; ?>
	</div><!-- end #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
